exports.API = {

    "/weixin/sendManagerMessage" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams: {
            u_id   : ''
        }
    },

    //代理商首页(只有管理人员可以访问)
    "/agent/index" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams: {
            year   : '',  //战略与代理商统计数据的年份
            month  : '',  //战略与代理商统计数据的月份
            os_id  : '',  //节点ID
            u_type : ''   //用户类型 0-平台用户 1-战略合作
        }
    },

    //添加代理商
    "/agent/add" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {
            os_id    : "",
            os_name  : "",
            os_phone : ""
        }
    },

    //代理商管理
    "/agent/manager" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams: {
            os_id  : '',  //节点ID
            u_type : ''   //用户类型 0-平台用户 1-战略合作
        }
    },

    //我的首页
    "/my/index" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams: {
            u_id : '' //用户ID
        }
    },

    //录入销售员
    "/my/addSales" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams: {
            os_id       : "", //节点ID
            os_type     : "", //节点类型 0-平台节点 1-战略节点 2-代理商节点
            u_name      : "", //用户名称
            u_phone     : ""  //用户手机
        }
    },

    //获取战略提成记录
    "/my/searchTeamCommissionRecord" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {
            os_id   : ""
        }
    },

    //获取代理商提成记录
    "/my/searchAgentCommissionRecord" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {
            os_id   : ""
        }
    },

    //修改密码
    "/my/updatePassword" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {
            u_id : "",
            oldPassword : "",
            newPassword : ""
        }
    },

    //登录
    "/my/login" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {
            username : "",
            password : ""
        }
    },
    

    //获取省市区
    "/common/getLocation" : {
        type   : "BUSSINESS",
        method : "GET"
    },

    
    /**************************** 临时放置 *****************************/

    //我的管理（首页）
    "/teamManager/index" : {
        type   : "BUSSINESS",
        method : "ALL"
    },

    //获取代理商提成记录
    "/teamManager/searchAgentCommissionRecord" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            os_id   : ""
        }
    },

    //获取战略伙伴提成记录
    "/teamManager/searchTeamCommissionRecord" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            os_id   : ""
        }
    },

    //生成代理商邀请海报（二维码）
    "/teamManager/createAgentQrcode" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            os_id : ""
        }
    },

    //生成销售员邀请海报（二维码）
    "/teamManager/createSalesQrcode" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            os_id   : "",  //要加入的节点
            os_type : ""   //节点的类型（0-战略合作 1-代理商） 
        }
    },

    //添加销售
    "/teamManager/addSales" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {
            os_id       : "",
            os_type     : "",
            u_name      : "",
            u_phone     : "" 
        }
    },

    //添加代理商
    "/teamManager/addAgent" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {
            os_id    : "",
            os_name  : "",
            os_phone : ""
        }
    },

    //代理商管理（首页）
    "/teamManager/agentIndex" : {
        type   : "BUSSINESS",
        method : "ALL"
    },

    //销售员详情页
    "/teamManager/salesDetail" : {
        type   : "BUSSINESS",
        method : "ALL",
        getMustParams : {
            u_id : ""
        }
    },

    //销售员管理（首页）
    "/teamManager/salesIndex" : {
        type   : "BUSSINESS",
        method : "ALL"
    },

    //团队登录
    "/teamManager/login" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {
            username : "",
            password : ""
        }
    },

    //x修改密码
    "/personal/updatePassword" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {
            u_id : "",
            oldPassword : "",
            newPassword : "",
        }
    },

    //主页数据
    "/home/homeData" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            u_id : ""
        }
    },

    //客户跟进
    "/home/followUpCustomers" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            u_id : "",
            is_manager : "",
        }
    },

    //客户详情
    "/home/customerDetail" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            customerId : ""
        }
    },

    //跟进记录
    "/home/followUpRecordList" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            customerId : ""
        }
    },

    //客户历史浏览记录
    "/home/customerHistoryBrowseRecord" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            c_openid : ""
        }
    },

    //服务记录
    "/home/serviceRecords" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            customerId : ""
        }
    },

    //售后服务
    "/home/waitingForServiceList" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            u_id : "",
            is_manager : "",
        }
    },

    //订单记录
    "/home/customerOrders" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            u_id : ""
        }
    },

    //订单处理
    "/home/orderProcessing" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            order_id : ""
        }
    },

    //客户池
    "/home/customerList" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            searchType : "",
            u_id:""
        }
    },

    //今日新增客户
    "/home/newCustomersToday" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            u_id:""
        }
    },

    //今日跟进客户
    "/home/followUpWithCustomersToday" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            u_id:""
        }
    },

    //今日成交
    "/home/customersWhoBuyProductsToday" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            u_id:""
        }
    },

    //传播列表
    "/communicationRelated/propagationList" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {

        }
    },

    //传播管理
    "/communicationRelated/communicationManagement" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {

        }
    },

    //今日阅读与总阅读
    "/communicationRelated/communicationBrowse" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            todayOrTotal:'',
            u_id:''
        }
    },

    //添加跟进记录
    "/home/addingFollowUpRecords" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {

        }
    },

    //添加服务记录
    "/home/addingServicedRecords" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {
            apo_nickname:"",
            apo_phone:"",
            cs_uid:"",
            apo_openid:"",
            c_osid:"",
            cs_content:"",
            cs_way:"",
            apo_no:"",
        }
    },

    //添加服务记录
    "/home/addingCustomerServicedRecords" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {
            c_id:"",
            cs_uid:"",
            cs_content:"",
            cs_way:"",
        }
    },

    //销售业绩统计
    "/home/salesPerformanceStatistics" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            u_id : ""
        }
    },

    //异议处理列表
    "/home/disputeProcessingList" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            u_id : "",
            is_manager : "",
        }
    },

    //反馈详情
    "/home/feedbackDetails" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            sq_id : ""
        }
    },

    //我要反馈
    "/home/feedbackAdd" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {
            is_master:"",
            u_id:"",
            os_id:"",
            sq_nickname:"",
            sq_type:"",
            sq_content:"",
        }
    },

    //反馈问题列表
    "/home/feedbackLists" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            u_id : "",
            is_manager : "",
        }
    },

    //回复反馈
    "/home/feedbackReply" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            sq_id : ""
        }
    },

    //知识库列表（销售必备）
    "/my/knowledgeBaseList" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            sk_type:""
        }
    },

    //知识详情
    "/my/knowledgeBaseDetail" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            sk_id:""
        }
    },

    //添加客户
    "/home/canBeAddCustomer" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            u_id:''
        }
    },

    //////////////////微信相关////////////////////////////
    //配置微信
    "/weixin/getJsapiTicket": {
        method: 'GET',
        getMustParams: {
            'access_token': ''
        }
    },
    "/weixin/getSignPackage": {
        method: 'POST',
        postMustParams: {
            'url': ''
        }
    },
    "/weixin/getAccessToken": {
        method: 'GET'
    },
	//获取openid
	"/weixin/getOpenId" : {
		method:"GET"
	},
    //微信模板消息
    "/weixin/templateMessagesSent" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {
            openid    : "",
            type      : ""
        }
    },
    //////////////////微信相关////////////////////////////


    //添加客户
    "/home/addCustomer" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {

        }
    },

    //添加反馈回复
    "/home/artSalesQuestionUpdate" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {

        }
    },

    //待审核问题列表
    "/home/questionsToBeAudited" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {

        }
    },

    //审核问题反馈操作
    "/home/toExamineFeedback" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {

        }
    },

    //分级客户列表
    "/home/hierarchicalCustomerList" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            evaluation_type:"",
            is_manager:"",
            os_id:"",
            u_type:"",
            u_id:"",
        }
    },

    //选择销售列表
    "/home/salesList" : {
        type   : "BUSSINESS",
        method : "GET",
        getMustParams : {
            u_id:"",
        }
    },

    //选择销售列表
    "/home/arrangeCustomerToSale" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {
            customerArr:"",
            u_id:"",
        }
    },

    //新增客户跟进点评
    "/home/addCustomerFollowRecord" : {
        type   : "BUSSINESS",
        method : "POST",
        postMustParams : {
            cfr_id:"",
            cfr_comment:"",
            cfr_comment_user:""
        }
    },
}